package com.cw.subject.domain.convert;

import com.cw.subject.domain.entity.SubjectInfoBO;
import com.cw.subject.domain.entity.SubjectOptionBO;
import com.cw.subject.infra.basic.entity.SubjectInfoPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    // 通过SubjectInfoBO转化为SubjectInfoPO
    SubjectInfoPO convertBoToInfoPO(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionToBo(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO, SubjectInfoPO subjectInfoPO);

    List<SubjectInfoBO> convertListInfoToBO(List<SubjectInfoPO> subjectInfoPOList);


}
